import request from '@/utils/request'
// 获取登录信息=>token
/**
 *
 * @returns 需要账号密码登录=>token
 */
export const login = ({ username, password }) => {
  return request.post('/auth/login', {
    username,
    password
  })
}
export const getUser = () => {
  return request.get('/auth/currentUser')
}
